<?php

function asset_url(){
	return base_url().'application/assets/';
}

function get_initial_data($obj){
	$obj->load->model('request_model');
	$obj->load->model('inventory_model');
	$request_count = $obj->request_model->get_request_count();
	$restock_count = $obj->inventory_model->get_restock_count();
	$data['request_count'] = $request_count;
	$data['restock_count'] = $restock_count;
	return $data;
}